<?php
if (!defined('IN_DISCUZ')) {
	exit('Access Denied');
}
global $_G, $setting;
if (!$_G['uid']){
	showmessage('to_login', '', array(), array('showmsg' => true, 'login' => 1));
}

$album_list = array();
	
$min_date = vn_mktime($setting['album_mindate']);

$query = DB::query("SELECT * FROM ".DB::table('home_album')." 
				WHERE uid = $_G[uid] AND picnum >= $setting[album_minpic] AND dateline >= $min_date");
while ($album = DB::fetch($query)){
	
	$album_list[$album['albumid']] = $album;
	
}

include template('yourstyle/register');
?>